From 5b9a94c2b532fb8bca6031cd614b8789109e98b7 Mon Sep 17 00:00:00 2001 From: "rac61@labyrinth.cl.cam.ac.uk" Date: Wed, 9 Jul 2003 09:20:54 +0000 Subject: [PATCH] bitkeeper revision 1.304.1.4 (3f0bde76AYbvHyA0ZKhVCX7Dwvw4sQ) Add new Extent partition number bits that were needed by the PhysicalList changes that I put in the last cset by mistake. Ah well. --- .../src/org/xenoserver/control/Extent.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tools/control/src/org/xenoserver/control/Extent.java b/tools/control/src/org/xenoserver/control/Extent.java index 3e56f31d23..98dbea314e 100644 --- a/tools/control/src/org/xenoserver/control/Extent.java +++ b/tools/control/src/org/xenoserver/control/Extent.java @@ -15,6 +15,8 @@ public class Extent { private long offset; /** Size of extent in sectors. */ private long size; + /** Partition number, if one is allocated. */ + private int partition_no; /** * Constructor for Extent. @@ -27,6 +29,20 @@ public class Extent { this.offset = offset; this.size = size; } + + /** + * Constructor for Extent. + * @param disk Disk number. + * @param offset Offset into disk. + * @param size Size of extent. + * @param partition_no Partition number. + */ + Extent(int disk, long offset, long size,int partition_no) { + this.disk = disk; + this.offset = offset; + this.size = size; + this.partition_no = partition_no; + } /** * @return Disk number. @@ -62,4 +78,11 @@ public class Extent { public int getMinor() { return disk & 0xFF; } + + /** + * @return Partition number of this extent. + */ + public int getPartitionNo() { + return partition_no; + } } -- 2.30.2